<?php

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}


  class table_common_member_profile extends discuz_table {

	public function __construct() {
		$this->_table = 'common_member_profile';
		$this->_pk = 'uid';

		parent::__construct();
	}
  
	public function fetch_first($uid) {
		
		return DB::fetch_first('SELECT uid FROM %t WHERE uid=%s', array($this->_table,$uid));
	}
   
   
   
   public function insert( $data) {
         
		return DB::insert($this->_table ,$data);
   }
  
    public function updata( $data,$val) {
         
		return DB::update($this->_table ,$data,$val);
   }
  
  }